package test2

object ListAndSet {
  def main(args: Array[String]): Unit = {
    var s=Set("Aa","bb","cc","Aa")
    println(s)
    s+="fff";
    println(s)
    var b=Set("bb","cc","dog","Cat","snake")
    var c1=s&b;
    println(s"交集：$c1")
    var c2=s|b;
    println(s"并集：$c2")

    var c3=s diff b;
    println(s"差集：$c3")
    //"qqq"+=:s
//    println(s)
  }
}
